import Mock from "mockjs";
import { CircleInterface, ToolButtons, ToolBars, User, FetcRequest } from "../utils/Interfaces";

export const toolButtons: ToolButtons = [
    {
        icon: "applet",
        title: "小程序面板",
    },
    {
        icon: "phone",
        title: "手机",
    },
    {
        icon: "menu",
        title: "设置及其他",
    },
];

export const toolBars: ToolBars = [
    {
        icon: "chat",
        title: "聊天",
        unReadCount: 0,
    },
    {
        icon: "users",
        title: "通讯录",
        unReadCount: 0,
    },
    {
        icon: "collect",
        title: "收藏",
        unReadCount: 0,
    },
    {
        icon: "files",
        title: "聊天文件",
        unReadCount: 0,
    },
    {
        icon: "timeline",
        title: "朋友圈",
        unReadCount: 0,
    },
]

export const user: User = {
    id: 1,
    name: "小明",
    avatar: "http://gips2.baidu.com/it/u=3944689179,983354166&fm=3028&app=3028&f=JPEG&fmt=auto?w=1024&h=1024",
    cover: "http://gips2.baidu.com/it/u=3944689179,983354166&fm=3028&app=3028&f=JPEG&fmt=auto?w=1024&h=1024",
    gender: 'famale', //性别  famale 女 male 男
    address: "中国",
}

export const circles: Array<CircleInterface> = [
    {
        id: 1,
        content: "今天天气不错",
        create_at: "2022-01-01 12:00:00",
        user,
        praises: [
            {
                id: 1,
                user,
                create_at: "2022-01-01 12:00:00",
            }
        ]
    }
]

export const fetchChat: FetcRequest = () => {
    return new Promise((resolve) => {
        resolve({
            code: "200",
            msg: "success",
            data: {

            }
        })
    })
}

export const Urls = {
    chat: fetchChat,
}